package sale.wxb.loveshopping.entity.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import sale.wxb.loveshopping.constant.RegexpConst;

import javax.validation.constraints.*;

@Getter
@Setter
@ApiModel(description = "添加用户实体")
public class AddUserVo extends SysUserVo {
    @ApiModelProperty(value = "用户账号", required = true)
    @NotNull
    @Pattern(regexp = RegexpConst.ACCOUNT, message = "账号以字母开头长度在6~18之间，只能包含字符、数字和下划线")
    private String account;
    @ApiModelProperty(value = "邮箱", required = true)
    @NotNull
    @Email
    private String email;
    @ApiModelProperty("是否启用 默认 启用")
    private Boolean enabled = true;
}
